﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CmsManage.aspx.cs" Inherits="OA.Cms.CmsManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="../Themes/Default/Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    
    
    
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="TitleZone">内容管理</td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="right">
    <asp:Button ID="BtnAdd" runat="server" Text="新增" CssClass="closebtn" OnClick="BtnAdd_Click" />
    <asp:Button ID="BtnDelete" runat="server" Text="删除" CssClass="closebtn" OnClientClick="return confirm('确定要删除吗？')"  OnClick="BtnDelete_Click" /></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left">
    搜索：
    <asp:TextBox ID="TxtSubject" runat="server" CssClass="inputText"></asp:TextBox>
    <asp:Button ID="BtnSearcn" runat="server" Text="搜索" CssClass="closebtn" OnClick="BtnSearcn_Click" />
    </td>
  </tr>
</table>
    
    <div>
    
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" CssClass="GridViewStyle" Width="100%" AllowPaging="true" PageSize="2" EmptyDataText="暂无内容" DataKeyNames="ContentId" OnPageIndexChanging="GridView1_PageIndexChanging">
        <Columns>
        
            <asp:TemplateField>
                <HeaderTemplate>
                    <input id="chball" type="checkbox" onclick="checkAll()" />全选
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="ChbCheck" runat="server" />
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle/>
            </asp:TemplateField>
            
            <asp:BoundField HeaderText="标题号"  DataField="ContentId"/>
            
            <asp:HyperLinkField HeaderText="标题" NavigateUrl="~/Cms/CmsForm.aspx" DataTextField="Title"/>
            
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <img id="Img3" src="~/Images/Edit.gif" runat="server" alt="" align="middle"/>
                    <asp:LinkButton ID="LinkButtonEdit" CommandArgument='<%#Eval("ContentId") %>' runat="server">编辑</asp:LinkButton>
                    &nbsp;|&nbsp;
                    <img id="Img4" src="~/Images/Delete.gif" runat="server" alt="" align="middle"/>
                    <asp:LinkButton ID="LinkButtonDel" CommandArgument='<%#Eval("ContentId") %>' runat="server">删除</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        
        <FooterStyle CssClass="GridViewFooterStyle" />
        <RowStyle CssClass="GridViewRowStyle" />
        <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
        <PagerStyle CssClass="GridViewPagerStyle" />
        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
        <HeaderStyle CssClass="GridViewHeaderStyle" />
        
    </asp:GridView>
    
    </div>
    
    </form>
</body>
</html>
